#include "mydialogitem.h"
#include "ui_mydialogitem.h"

mydialogitem::mydialogitem(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::mydialogitem)
{
    ui->setupUi(this);
}

mydialogitem::~mydialogitem()
{
    delete ui;
}

void mydialogitem::setAccount(const QString &account)
{
    ui->account->setText(account);
}

void mydialogitem::setMessage(const QString &message)
{
    ui->message->setText(message);
}

void mydialogitem::setPix(const QPixmap &pix)
{
    ui->headPhoto->setPixmap(pix);
}

void mydialogitem::setTime(const QString &time)
{
    ui->time->setText(time);
}
